﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RPGX.Graphics;

namespace RPGX.Graphics
{
    public static class HUDControlFactory
    {
        #region Public Static Methods

        public static HUDObject Create(string name)
        {
            HUDObject o = null;

            name = name.Trim().ToLower();

            if (name == "image")
            {
                o = new HUDObject_Image();
            }
            else if (name == "button")
            {
                o = new HUDObject_Button();
            }
            else if (name == "textarea")
            {
                o = new HUDObject_TextArea();
            }
            else if (name == "textbox")
            {
                o = new HUDObject_TextBox();
            }

            return o;
        }

        #endregion
    }
}
